import React, { Component } from 'react'
import '../index.css'
export class sike extends Component {
  render() {
    return (
      <span className={this.props.item.attitude===-1?"hate hated":'hate'} onClick={()=>{this.props.like(this.props.item.id,this.props.item.attitude===-1?0:-1)}}> 
                  <i className="icon" />
      </span>
    )
  }
}

export default sike